package com.gzhryc.shared_device.oem.h5.agent.dto.api.v1.security;

import com.gzhryc.common.api.SecurityResponse;
import com.gzhryc.shared_device.oem.h5.agent.dto.BusinessConfigItem;

import java.io.Serializable;
import java.util.List;

/**
 * 登陆响应
 * 
 * @author zhanghao
 * @version 2020-10-29
 */
public class UserLoginResponse extends SecurityResponse<UserLoginResponse.Body> {

	private static final long serialVersionUID = 1L;

	public UserLoginResponse() {
		this.body = new Body();
	}

	public UserLoginResponse(Integer code) {
		super(code);
		this.body = new Body();
	}

	public UserLoginResponse(Integer code, String msg) {
		super(code, msg);
		this.body = new Body();
	}

	public static class Body implements Serializable {

		private static final long serialVersionUID = 1L;
		
		private String nickname;
		private String phone;
		private String levelName;
		private String token;
		private Integer roleType;
		private String roleTypeName;
		private Long superiorId;
		private String superior;
		private String openId;  //微信登陆使用
		private Integer canCancelOrder = 1;
		private List<BusinessConfigItem> businessTypes;

		public String getNickname() {
			return nickname;
		}

		public void setNickname(String nickname) {
			this.nickname = nickname;
		}

		public String getPhone() {
			return phone;
		}

		public void setPhone(String phone) {
			this.phone = phone;
		}

		public String getLevelName() {
			return levelName;
		}

		public void setLevelName(String levelName) {
			this.levelName = levelName;
		}

		public String getToken() {
			return token;
		}

		public void setToken(String token) {
			this.token = token;
		}

		public Integer getRoleType() {
			return roleType;
		}

		public void setRoleType(Integer roleType) {
			this.roleType = roleType;
		}

		public String getRoleTypeName() {
			return roleTypeName;
		}

		public void setRoleTypeName(String roleTypeName) {
			this.roleTypeName = roleTypeName;
		}

		public Long getSuperiorId() {
			return superiorId;
		}

		public void setSuperiorId(Long superiorId) {
			this.superiorId = superiorId;
		}

		public String getSuperior() {
			return superior;
		}

		public void setSuperior(String superior) {
			this.superior = superior;
		}

		public String getOpenId() {
			return openId;
		}

		public void setOpenId(String openId) {
			this.openId = openId;
		}
		
		public Integer getCanCancelOrder() {
			return canCancelOrder;
		}

		public void setCanCancelOrder(Integer canCancelOrder) {
			this.canCancelOrder = canCancelOrder;
		}

		public List<BusinessConfigItem> getBusinessTypes() {
			return businessTypes;
		}

		public void setBusinessTypes(List<BusinessConfigItem> businessTypes) {
			this.businessTypes = businessTypes;
		}
	}
}
